package com.xxl.job.executor.jobhandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import com.xxl.job.executor.service.IMonitorGrantryTransService;

/**
 * 门架计费扣款流水监视明细类
 * @author Administrator
 *
 */
@JobHandler(value="monitorGrantryTransHandler")
@Component
public class MonitorGrantryTransHandler extends IJobHandler {

	 @Autowired
	    private IMonitorGrantryTransService monitorGrantryTransService;
	 
	 @Override
     public ReturnT<String> execute(String param) throws Exception {	
		 
        XxlJobLogger.log("开始执行数据同步任务");
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>测试系统开始");

        monitorGrantryTransService.transfer();

        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>测试系统结束");
        XxlJobLogger.log("执行数据同步任务结束");
        return SUCCESS;
     }
}
